package de.slowpoke.flattr.Error
{
	/**
	 * Error class. Defines several standart messages.
	 */
	public class FlattrError extends Error
	{
		public static var DEFAULT:String 	= "Some Error occurred (no reason were specified).";
		public static var INVALID_CATEGORY:String = "The supplied category string is not valid.";
		public static var INVALID_BUTTON:String	= "The supplied button string is not valid.";
		public static var INVALID_LANGUAGE:String = "The supplied language string is not valid.";
		public static var EMPTY_URL:String = "URL is empty";
		public static var EMPTY_TITLE:String = "TITLE is empty";
		public static var EMPTY_DESCRIPTION:String = "DESCRIPTION is empty";
		public static var EMPTY_UID:String = "User ID is empty or NaN.";

		public function FlattrError(message:*="", id:*=0)
		{
			super("[FLATTR] "+message, id);
		}
	}
}